package com.fourth.util;

/**
 * @author Mr.ma
 * @since 2023/2/28 14:22
 **/
public class RedisKeyUtils {

    public static final String MAP_KEY_ROLE_STATE = "MAP_ROLE_STATE";

    /**
     * 指定redis中key的拼接规则
     * 类名::主键
     * @param className
     * @param id
     * @return
     */
    public static String getRoleKey(String className, String id){
        StringBuilder builder = new StringBuilder();
        builder.append(className);
        builder.append("::");
        builder.append(id);
        return builder.toString();
    }
}
